package com.qumitech.visualnovel.datasource.console;

import java.util.List;
import java.util.HashMap;
import org.apache.ibatis.annotations.Param;
import com.qumitech.visualnovel.model.dao.console.OutputConsumptionDetail;

public interface OutputConsumptionDetailMapper {
    int deleteByPrimaryKey(Long id);

    int insert(OutputConsumptionDetail record);

    int insertSelective(OutputConsumptionDetail record);

    OutputConsumptionDetail selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(OutputConsumptionDetail record);

    int updateByPrimaryKey(OutputConsumptionDetail record);

    int getOutputConsumptionDetailCount(@Param("uid") String uid, @Param("channel") String channel, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<HashMap<String, Long>> getOutputConsumptionDetailTotal(@Param("uid") String uid, @Param("channel") String channel, @Param("startTime") String startTime, @Param("endTime") String endTime);

    List<OutputConsumptionDetail> getOutputConsumptionDetail(@Param("uid") String uid, @Param("channel") String channel, @Param("startTime") String startTime, @Param("endTime") String endTime, @Param("orderBy") String orderBy, @Param("orderType") String orderType, @Param("offset") int offset, @Param("limit") int limit);
}